package Figuras;

public class Circunferencia {
	private double radio, area, perim;
	private final double PI = 3.1416;
	private boolean mayor;
	
	public Circunferencia () {
		radio = 10;
	}
	
	public Circunferencia (int rad) {
		if (rad >= 0) {
			radio = rad;
		}
		else {
			System.out.println("tralala");
		}
	}
	
	public double getArea () {
		return area;
	}
	
	public double getPerim () {
		return perim;
	}
	
	public double getRadio () {
		return radio;
	}
	
	public double calcArea () {
		area = PI * (radio * radio);
		return area;
	}
	
	public double calcPerim () {
		perim = 2 * PI * radio;
		return perim;
	}
	
	boolean esMayor (Circunferencia c1) {
		if (c1.area > this.area) {
			mayor = true;
		}
		else {
			mayor = false;
		}
		return mayor;
	}
	
	boolean esMayor (double are) {
		if (are > this.area) {
			mayor = true;
		}
		else {
			mayor = false;
		}
		return mayor;
	}
}
